# coding=utf-8
# This is a sample Python script.
from driver import GPIO
import utime as time
print("-------start-------")

#实例化一个gpio对象
di1=GPIO()
di2=GPIO()
di1.open("di1")
di2.open("di2")

while True:
    time.sleep(1)
    print('---------------------')
    print('DI1',di1.read())
    print('DI2',di2.read())